import * as types from '../../actions/pageOne/ActionTypes';
import { combineReducers } from 'redux'

const initialState = {
  mobject: {},
  marray: []
}

function getJsonObject(state = initialState.mobject, action = {}) {
  switch (action.type) {
    case types.OBJECT:
      return action.mobject;
    default:
      return state;
  }
}

function getJsonArray(state = initialState.marray, action = {}) {
  switch (action.type) {
    case types.ARRAY:
      return action.marray;
    default:
      return state;
  }
}
